package unrn.isiii.bean;


import javax.faces.component.UIComponent;
import javax.faces.event.FacesEvent;
import javax.faces.event.FacesListener;


public class SelectLevelEvent extends FacesEvent {

	private int currentLevel;
	private int newLevel;

	public SelectLevelEvent(UIComponent component, int currentLevel, int newLevel) {
		super(component);
		this.currentLevel = currentLevel;
		this.newLevel = newLevel;
	}

	@Override
	public boolean isAppropriateListener(FacesListener listener) {
		return false;
	}

	@Override
	public void processListener(FacesListener listener) {
		throw new UnsupportedOperationException();
	}

	public int getCurrentLevel() {
		return currentLevel;
	}

	public int getNewLevel() {
		return newLevel;
	}
}